/*
 * @Description: 
 * @Author: wangqi
 * @Date: 2021-04-04 09:25:08
 * @LastEditTime: 2021-04-15 23:59:51
*/
let plugins = ["dynamic-import-node"];
const IS_PROD = ["production", "prod"].includes(process.env.NODE_ENV);
if (IS_PROD) {
  // plugins.push("transform-remove-console");
} else {
  // 按需加载组件代码和样式的 babel 插件
  let babelPluginImport = ['import', { libraryName: "ant-design-vue", libraryDirectory: "es", style: true }];
  // plugins.push(babelPluginImport);
}

module.exports = {
  plugins,
  presets: [
    '@vue/cli-plugin-babel/preset',
  ]
}
